package com.service;

import com.Exception.NormalException.FriendExceptions.FriendAlreadyExistException;
import com.Result.FriendApplyResult;
import com.entity.FriendApply;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XTC
 * @since 2024-07-10
 */
public interface FriendApplyService extends IService<FriendApply> {
    boolean acceptApply(Integer applyId) throws FriendAlreadyExistException;

    boolean refuseApply(Integer applyId);

    boolean sendFriendApply(FriendApply friendApply);

    List<FriendApplyResult> getByUserId(Integer userId);

    boolean sendApplyResult(Integer applyId, boolean result);
}
